home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / SCROLLUP.CC < prev    next >
Text File  |  1993-04-04  |  487b  |  18 lines

  1. #include <dos.h>
  2. scroll_up(int trow, int lcol,int brow, int rcol,int attr, int lines)
  3. /* This will scroll the specified window up the specified number of lines.
  4.    SEE SCROLL_DN FOR DESCP. IF ARGS PASSED
  5. */
  6. {
  7.    union REGS inregs;
  8.  
  9.    inregs.h.bh = attr;
  10.    inregs.h.cl = lcol;
  11.    inregs.h.ch = trow;
  12.    inregs.h.dl = rcol;
  13.    inregs.h.dh = brow;
  14.    inregs.h.al = lines;
  15.    inregs.h.ah = 6;                     /* do the backscroll */
  16.    int86(0x10,&inregs,&inregs);
  17. }
  18.